package com.xydpeng.tech.order;

import com.xydpeng.tech.order.service.order.OrderService;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @author xydpeng
 * @version v1.0
 * @date: 2024/12/10
 * @description:
 */
@MapperScan(basePackages = "com.xydpeng.tech.order.dal.dao")
@SpringBootApplication
public class OrderServerApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(OrderServerApplication.class, args);
        Thread t1 = new Thread(() -> {
            OrderService orderService = context.getBean(OrderService.class);
            orderService.paidSucessCallback(12345L);

        }, "T1");
    }
}
